import 'package:get/get.dart';
import 'package:xingsu/page/mine/viewModel/mine_viewmodel.dart';
import 'package:xingsu/util/use_preferences.dart';

class SetViewModel extends GetxController {
  @override
  void onInit() {
    super.onInit();
  }

  void logout() {
    UserPreferences.setIsLogin(false);

    MineViewModel _viewModel = Get.find();
    _viewModel.changeLogin();
    Get.back();
  }
}
